
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./css/function.css">
    <style>
    .dropdown-menu {
    position: relative;
    display: inline-block;
}

.main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.main-menu .menu-item {
    position: relative;
    float: left;
}

.main-menu .menu-item a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
}

.main-menu .menu-item:hover {
    background-color: #f5f5f5;
}

.sub-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    z-index: 1;
    min-width: 150px;
}

.sub-menu li a {
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    display: block;
}

.sub-menu li a:hover {
    background-color: #f5f5f5;
}

.menu-item:hover .sub-menu {
    display: block;
}
    </style>
</head>
<body>
    <nav class="dropdown-menu">
        <ul class="main-menu f-cb">
            <li class="menu-item">
                <a href="#">Menu Item 1</a>
                <ul class="sub-menu">
                    <li><a href="#">Sub Menu Item 1.1</a></li>
                    <li><a href="#">Sub Menu Item 1.2</a></li>
                    <li><a href="#">Sub Menu Item 1.3</a></li>
                </ul>
            </li>
            <li class="menu-item">
                <a href="#">Menu Item 2</a>
                <ul class="sub-menu">
                    <li><a href="#">Sub Menu Item 2.1</a></li>
                    <li><a href="#">Sub Menu Item 2.2</a></li>
                    <li><a href="#">Sub Menu Item 2.3</a></li>
                </ul>
            </li>
        </ul>
    </nav>
</body>
</html>